package com.itheima.pinkman.pojo;

import lombok.Data;
import tk.mybatis.mapper.annotation.KeySql;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

/**
 * 封装服务的相关信息
 */
@Data
@Table(name = "tb_provider")
public class ServiceInfo implements Serializable {

    private String ip;//服务的ip地址
    @Column(name = "port")
    private int port;//服务的端口号
    @Column(name = "appName")
    private String appName;//服务的名称
    @Column(name = "serviceId")
    private String serviceId;//ip+port
    @Column(name = "updateTime")
    private long updateTime;//更新时间
    @Column(name="createTime")
    private Date createTime;//创建时间


}
